package com.caishi.lkx.user.service;


import com.zzw.common.entity.BSService;
import com.caishi.lkx.user.model.re.SysGroupIpReModel;

import java.math.BigInteger;
import java.util.List;

/**
 * @Param:
 * @return
 * @Author: huangpeng
 * @Date: 2022/1/6 15:09
 * @Description:
 */
public interface IGroupIpReService extends BSService<SysGroupIpReModel, Long> {
    void deleteByGroupId(Long groupId);

    void deleteByGroupIds(List<Long> groupIds);


    /**
     * 解绑机构ip关联
     * @param id
     * @return
     */
    Boolean unBind(Long id);

    /**
     * 取消机构关联
     * @param
     * @return
     */
    Boolean unRelation(Long id);
    /**
     * 根据ip获取用户所属机构
     * @param ip
     * @return
     */
    Long getGroupIdByIp(String ip);

    /**
     * 根据值获取ip配置
     * @param val
     * @return
     */
    SysGroupIpReModel getByBigInteger(BigInteger val);
}
